package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
*
* </p>
*
* @author 作者
* @since 2022-10-11
*/
@Getter
@Setter
@Accessors(chain = true)
@TableName("r_restaurant_picture")
public class RestaurantPicture extends Model<RestaurantPicture> {

    private static final long serialVersionUID = 1L;

    /**
    * 图片所属的餐饮厅id
    */
    private Integer restaurantId;

    /**
    * 该餐饮厅的描述图片url
    */
    @TableId(value = "restaurant_picture_url", type = IdType.ASSIGN_ID)
    private String restaurantPictureUrl;


    @Override
    public Serializable pkVal() {
    return this.restaurantPictureUrl;
    }

}
